package com.ruoyi.messages.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动管理对象 sys_event
 *
 * @author ruoyi
 * @date 2024-06-14
 */
public class SysEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动主键ID */
    private Long id;

    /** 活动的名称 */
    @Excel(name = "活动的名称")
    private String name;


    /** 活动的图片 */
    @Excel(name = "活动的图片")
    private String imgUrl;

    /** 活动类型 0/文本  1/H5链接 */
    @Excel(name = "活动类型 0/文本  1/H5链接")
    private String type;

    /** 活动内容/活动链接 */
    @Excel(name = "活动内容/活动链接")
    private String context;


    private String url;

    /** 状态 0/正常  1/异常 */
    @Excel(name = "状态 0/正常  1/异常")
    private String status;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    private Long goalIds;

    private String dataType;


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getGoalIds() {
        return goalIds;
    }

    public void setGoalIds(Long goalIds) {
        this.goalIds = goalIds;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setContext(String context)
    {
        this.context = context;
    }

    public String getContext()
    {
        return context;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("imgUrl", getImgUrl())
            .append("type", getType())
            .append("context", getContext())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .toString();
    }
}
